extends ./../layout

block content
  div(class="ui  container")
      div(class="add-article")
        form#update-article(class="ui form")
          div(class="field inline")
            label 文章分类
            select#category(class="ui dropdown")
              option(value="keji",selected="#{detail.category=='keji'}") 科技
              option(value="lvyou",selected="#{detail.category=='lvyou'}") 旅游
              option(value="wenhua",selected="#{detail.category=='wenhua'}") 文化
          div(class="field  inline")
            label 文章标题
            input#title(type='text', placeholder='请输入标题',value='#{detail.title}')
          div(class="field inline")
            label 作者名称
            input#author(type='text', placeholder='作者名称',value='#{detail.author}')
          div(class="field inline")
            label 文章内容
            textarea#content(type='',style="width:500px;height:200px;") #{detail.content}
          div(class="field inline")
            label 上传缩略图
            input#fileInput.input-file(type='file',name="myfile",multiple)
            div
              img#uploadImg(width='200px',src='#{detail.img}')
          div(class="ui button submit",type="submit",data-id="#{detail._id}") 确认提交
